import Layout from '@/layout/index.vue'

const systemRouter = [{
    path: '/system',
    component: Layout,
    redirect: '/system/user',
    name: 'system',
    meta: {
        title: '系统管理',
        icon: 'Setting',
    },
    children: [
        {
            path: '/system/admin',
            component: () => import('@/views/system/admin/index.vue'),
            name: 'dictionary',
            meta: { title: '用户列表', icon: 'MenuIcon' }
        },
        {
            path: '/system/role',
            component: () => import('@/views/system/role/index.vue'),
            name: 'role',
            meta: { title: '角色管理', icon: 'MenuIcon' }
        },
        {
            path: '/system/menu',
            component: () => import('@/views/system/menu/index.vue'),
            name: 'menu',
            meta: { title: '菜单管理', icon: 'MenuIcon' }
        },
        {
            path: '/system/node',
            component: () => import('@/views/system/node/index.vue'),
            name: 'node',
            meta: { title: '节点管理', icon: 'MenuIcon' }
        },
        {
            path: '/system/config',
            component: () => import('@/views/system/config/index.vue'),
            name: 'config',
            meta: { title: '系统参数', icon: 'MenuIcon' }
        },
    ]
}]

export default systemRouter
